<script>
    let active = true;
    let foo = false;
</script>

<div class:active class:bar={foo}>
    Hello world!
</div>
